<!--健康报备-->
<style>
.demo-table-expand {
  font-size: 0;
}
.demo-table-expand label {
  width: 90px;
  color: #99a9bf;
}
.demo-table-expand .el-form-item {
  margin-right: 0;
  margin-bottom: 0;
  width: 50%;
}
</style>

<template>
<div style="width:1200px;margin: 0 auto">
  <el-divider></el-divider>
  <el-table
      :data="tableData"
      style="width: 1200px">
    <el-table-column type="expand">
      <template slot-scope="props">
        <el-form label-position="left" inline class="demo-table-expand">
          <el-form-item label="姓名">
            <span>{{ props.row.name }}</span>
          </el-form-item>
          <el-form-item label="体温">
            <span>{{ props.row.temperature }}</span>
          </el-form-item>
          <el-form-item label="健康码">
            <span>{{ props.row.health_code }}</span>
          </el-form-item>
          <el-form-item label="24小时核酸">
            <span>{{ props.row.nucleic_report }}</span>
          </el-form-item>
          <el-form-item label="家庭地址">
            <span>{{ props.row.address }}</span>
          </el-form-item>
          <el-form-item label="是否出门">
            <span>{{ props.row.go_out }}</span>
          </el-form-item>
          <el-form-item label="是否经过疫区">
            <span>{{ props.row.area }}</span>
          </el-form-item>
        </el-form>
      </template>
    </el-table-column>
    <el-table-column
        label="名字"
        prop="name">
    </el-table-column>
    <el-table-column
        label="体温"
        prop="temperature">
    </el-table-column>
    <el-table-column
        label="身体状态"
        prop="">
    </el-table-column>
    <el-table-column
        label=" 是否出门"
        prop="">
    </el-table-column>
  </el-table>

</div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [{
        name: '小枫',
        temperature:'36.8',
        health_code:'',
        nucleic_report:'',
        address:'',
        go_out:'',
        area:''
      }, {
        name: '小枫',
        category: '江浙小吃、小吃零食',
        desc: '荷兰优质淡奶，奶香浓而不腻',
        address: '上海市普陀区真北路',
        shop: '王小虎夫妻店',
        shopId: '10333'
      }, {
        id: '12987125',
        name: '好滋好味鸡蛋仔',
        category: '江浙小吃、小吃零食',
        desc: '荷兰优质淡奶，奶香浓而不腻',
        address: '上海市普陀区真北路',
        shop: '王小虎夫妻店',
        shopId: '10333'
      }, {
        id: '12987126',
        name: '好滋好味鸡蛋仔',
        category: '江浙小吃、小吃零食',
        desc: '荷兰优质淡奶，奶香浓而不腻',
        address: '上海市普陀区真北路',
        shop: '王小虎夫妻店',
        shopId: '10333'
      }]
    }
  }
}
</script>